package calculadora;

import utils.Dentre;

public class Prueba {
	
	public static void main (String args[]){
		int op; 
		LogiCalculator calc = new LogiCalculator();
		do{
			
		do{
			System.out.println("logic calculator");
			System.out.println("enter option");
			System.out.println("1 - new operation");
			System.out.println("2 - get out");
			op=Dentre.readInt();
			if ((op<1)||(op>2)){
				System.out.println("invalid option");
			}
		
		}while ((op<1)||(op>2));
		switch (op) {
		case 1:
			System.out.println("Enter operation");
			try {
				calc.sendOperation(Dentre.readString());
				
			}catch (exceptions.OperandException e){
				
			}
			
			break;
		

		default:
			break;
		}
		
		}while (op!=2);
		
	}

}
